package com.situ.mall.thread;



public class Demo {

    public static void main1(String[] args) {
        System.out.println(Thread.currentThread().getName());
        MyThread myThread = new MyThread();
        //myThread.run();
        myThread.start();
    }

    public static void main(String[] args) {
        MyRunnable myRunnable = new MyRunnable();
        Thread thread = new Thread(myRunnable, "Runnable线程");
        thread.start();
    }
}
